package com.leoman.user.dao;

import com.leoman.common.dao.IBaseJpaRepository;
import com.leoman.user.entity.UserCheck;
import org.springframework.data.jpa.repository.Query;

/**
 * Created by Administrator on 2016/6/12.
 */
public interface UserCheckDao extends IBaseJpaRepository<UserCheck> {

    @Query("select a from UserCheck a where a.userId = ?1")
    UserCheck findOneByUserId(Long userId);
}
